<html lang="en"><head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-COMPATIBLE" content="IE=edge,chrome=1">
<meta name="renderer" content="webkit">
<meta name="viewport" content="width=device-width, initial-scale=1">

<meta name="keywords" content="">
<meta name="description" content="">
<meta name="author" content="">
<title></title>

<link rel="stylesheet" type="text/css" href="css/globle.css">
<script src="http://www.jq22.com/jquery/jquery-1.10.2.js"></script><script src="https://libs.baidu.com/jquery/1.10.2/jquery.min.js"></script>
</head>
<body class="" style="">
<div style="padding: 100px;">
<ul class="upload-ul clearfix">
<li class="upload-pick">
<div class="webuploader-container clearfix" id="goodsUpload"><div class="webuploader-pick webuploader-pick-hover"></div><div id="rt_rt_1dfpj0lt21pse1nlu1lgl1fjr1nfk1" style="position: absolute; top: 0px; left: 0px; width: 120px; height: 90px; overflow: hidden; bottom: auto; right: auto;"><input type="file" name="file" class="webuploader-element-invisible" multiple="multiple" accept=""><label style="opacity: 0; width: 100%; height: 100%; display: block; cursor: pointer; background: rgb(255, 255, 255);"></label></div></div>
</li>
</ul>
<p><a class="upload-btn" href="javascript:;">提交</a></p>
</div>
<script src="js/webuploader.min.js"></script>
<script src="js/diyUpload.js"></script>
<script>
    $(function(){

        //上传图片
        var $tgaUpload = $('#goodsUpload').diyUpload({
            url:'/uploadFilePath',
            success:function( data ) { },
            error:function( err ) { },
            buttonText : '',
            accept: {
                title: "Images",
                extensions: 'gif,jpg,jpeg,bmp,png'
            },
            thumb:{
                width:120,
                height:90,
                quality:100,
                allowMagnify:true,
                crop:true,
                type:"image/jpeg"
            }
        });


    });
</script>

</body></html>